package com.kele.mythread;

/**
 * @author chunhui.li
 * @date 2022/2/7 14:38
 * @Description 使用继承Thread的方式创建线程
 * @ClassName ExThreadWay
 */
public class ExThreadWay extends Thread {

    @Override
    public void run() {
        System.out.println("使用继承Thread的方式创建线程");
    }

    public static void main(String[] args) {
        ExThreadWay exThreadWay = new ExThreadWay();
        exThreadWay.start();
    }
}
